class test {
public:
    int a;
};
test foo(test&) { return {}; }
int main() {
    test Test = foo(Test);
    (Test.a = 1);
}